<?php
declare (strict_types = 1);

namespace app\model\communal;

use think\Model;

class ExpertTokenModel extends Model
{
    /**
     * 数据库配置
     *
     * @var string
     */
    protected $connection = 'communal';

    /**
     * 主键
     *
     * @var string
     */
    protected $pk = 'id';

    /**
     * 表名
     *
     * @var string
     */
    protected $table = '63001_expert_token';

    /**
     * 自动时间戳
     *
     * @var bool
     */
    protected $autoWriteTimestamp = true;

    /**
     * 时间字段设置
     *
     * @var string
     */
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';

    /**
     * 展示字段名
     *
     * @var string[]
     */
    public static $column = ['expert_id', 'token'];

    /**
     * 搜索字段名
     *
     * @var string[]
     */
    public static $searchColumn = ['expert_id'];

    /**
     * 新增字段
     *
     * @var string[]
     */
    public static $saveColumn = ['expert_id', 'token'];
}
